﻿<%@ Page Title="" Language="C#" MasterPageFile="../MasterPages/MedianamikModule.Master" AutoEventWireup="true" CodeBehind="LockList.aspx.cs" Inherits="Medianamik.UI.ConfigManagement.LockList" %>
<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:LinkButton runat="server" ID="btnCleanUpLocks" CssClass="Action BtPublier" Text="<%$ Resources:Medianamik_LockManagement, CleanUpLocksButton %>" OnClick="btnCleanUpLocks_Click" ></asp:LinkButton>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">

	<telerik:RadGrid runat="server" ID="GridLocks" EnableEmbeddedSkins="false" Skin="Medianamik" AutoGenerateColumns="false" OnItemCommand="GridLocks_ItemCommand">
		<MasterTableView>
			<Columns>
				<telerik:GridBoundColumn DataField="NodeName" HeaderText="<%$ Resources: Medianamik_LockManagement, NodeNameColumn %>" />
				<telerik:GridBoundColumn DataField="ActivationDate" HeaderText="<%$ Resources: Medianamik_LockManagement, ActivationDateColumn %>" />
				<telerik:GridCheckBoxColumn DataField="IsAlive" HeaderText="<%$ Resources: Medianamik_LockManagement, IsAliveColumn %>" />
				<telerik:GridTemplateColumn HeaderStyle-Width="1%" HeaderText="Actions">
					<HeaderStyle HorizontalAlign="Center" />
					<ItemStyle CssClass="Actions" />
					<ItemTemplate>
						<table border="0" cellpadding="0" cellspacing="0" align="center">
							<tr>
								<td><med:ConfirmedImageButton ID="cmdDelete" CommandArgument='<%# Eval("LockId") %>' CommandName="DeleteLock" ImageUrl="/medianamik/images/Icones/Ico_Supprimer.gif" runat="server" ConfirmText="<%$ Resources: Medianamik_LockManagement, ConfirmDeleLockText %>" /></td>
							</tr>
						</table>
					</ItemTemplate>
				</telerik:GridTemplateColumn>
			</Columns>
			<NoRecordsTemplate>
			    <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			</NoRecordsTemplate>
		</MasterTableView>
	</telerik:RadGrid>
	
</asp:Content>
